import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'home',
    component: HomeView
  },
 
  {
    path: '/todolist',
    name: 'todolist',
    component: () => import('../views/todolist.vue')
  },
  {
    path: '/tab',
    name: 'tab',
    component: () => import('../views/tab.vue')
  },
  {
    path: '/banner',
    name: 'banner',
    component: () => import('../views/banner.vue')
  },
  {
    path: '/sort',
    name: 'sort',
    component: () => import('../views/sort.vue')
  },
  {
    path: '/news',
    name: 'news',
    component: () => import('../views/news.vue')
  },
  {
    path: '/list',
    name: 'list',
    component: () => import('../views/bottom/list.vue')
  },
  {
    path: '/detail',
    name: 'detail',
    component: () => import('../views/bottom/detail.vue')
  },
  {
    path: '/page',
    name: 'page',
    component: () => import('../views/page.vue')
  },
  {
    path: '/sel',
    name: 'sel',
    component: () => import('../views/sel.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router